var xmlhttp
function jsdelete(id)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="user_access_level_delete.php";
url=url+"?id="+id;
if(confirm("Are you sure you want to delete this record?"))
{
xmlhttp.onreadystatechange=stateChangedFill;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
}

function stateChangedFill()
{
if (xmlhttp.readyState==4)
  {
  var result = xmlhttp.responseText;
  if(result==1)
  window.location.reload();
  else
  alert(result);
  }
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}